#include "head.h"
void remove_first(Node *phead_F){
	phead_F->next = phead_F->next->next;
	return;
}

void remove_late(Node *phead_F){
	Node *p = phead_F->next;
	while(p->next->next){
		p = p->next;
	}
	p->next = p->next->next;
	return;
}

void remove(Node *phead_F, char *str){
	Node *p = phead_F;
	while(p->next){
		Faculty *s = (Faculty*)malloc(sizeof(Faculty));
		s = (Faculty*)p->next->data;
		if(strcmp(str, s->name) == 0){
			p->next = p->next->next;
			return;
		}
		p = p->next;
	}
	printf("删除成功！\n");
	return;
}